<template>
	<view class="content">
		<top-page :majorList="majorList" :querySign="nowClickRow"></top-page>
		<!-- 报录比 -->
		<view class="morezx ledai">
			<view class="bltitle">历年分数线和报录比</view>
			<view class="little_words">
				<image class="little_words_icon" src="https://image.alhelp.net/uploads/20231104/42112fa0ed7e9c879d6965a7badf2bae.png"></image>
				报录比
			</view>
			<view class="rightInfoBox">
				<view class="firstTop">
					<image src="https://aihelp.oss-cn-hangzhou.aliyuncs.com/wechat/see.png" alt=""
						style="width: 40px; height: 40px;margin-left: 10px;" />
					<view class="firstTopWords">学校是否保护一志愿？</view>
				</view>
				<view class="lineBox"></view>
				<view class="middleBox">
					<span class="smallSize">复录比大于1.2:1，还接收调剂的</span>
					<div class="weightFont">——不保护一志愿</div>
				</view>
				<view class="middleBox">
					<span class="smallSize">接收调剂生：一志愿录取最低分>国家线20年~30分</span>
					<div class="weightFont">——不保护一志愿</div>
				</view>
				<view class="middleBox">
					<span class="smallSize">有调剂进来，又有调剂出去的</span>
					<div class="weightFont">——可能不保护一志愿</div>
				</view>
			</view>
			<view class="firstEchartBox">
				<qiun-data-charts type="column" :opts="columOpts" :chartData="{
					categories:categories1,
					series: this.seriesData1
				}" />
			</view>
			<view class="firstTableBox" v-show="firstTableDataShow">
				<wyb-table ref="table" height="300px" :headers="headers" :contents="firstTableData" width="100%" />
			</view>
		</view>
		<view>
			<view class="morezx ledai" v-if="adjustSource1.length|| seriesData11.length">
				<view class="little_words">
					<image class="little_words_icon" src="https://image.alhelp.net/uploads/20231104/340b7c248a2fff875289157d194f1c29.png"></image>
					调剂来源列表
				</view>
				<view class="firstEchartBox" v-if="seriesData11.length">
					<qiun-data-charts type="pie" :opts="pieOpts" :chartData="{
						series: [
						  {
						    data: seriesData11
						  }
						]
					}" />
				</view>
				<view class="cxsfxTableBox" v-if="adjustSource1.length">
					<wyb-table ref="cjzktable" first-line-fixed="true" :headers="adjustSource1TableHeader"
						:contents="adjustSource1" width="100%" />
				</view>
			</view>
			<view class="morezx ledai" v-if="seriesData12.length|| adjustGo.length">
				<view class="little_words">
					<image class="little_words_icon" src="https://image.alhelp.net/uploads/20231104/340b7c248a2fff875289157d194f1c29.png"></image>
					调剂去向列表
				</view>
				<view class="firstEchartBox" v-if="seriesData12.length">
					<qiun-data-charts type="pie" :opts="pieOpts" :chartData="{
						categories:categories1,
						series: this.seriesData1
					}" />
				</view>
				<view class="cxsfxTableBox" v-if="adjustGo.length">
					<wyb-table ref="cjzktable" first-line-fixed="true" :headers="adjustSource1TableHeader" :contents="adjustGo"
						width="100%" />
				</view>
			</view>
			<view class="morezx ledai" v-show="averCountdetaiLefttableDataShow">
				<view class="little_words">
					<image class="little_words_icon" src="https://image.alhelp.net/uploads/20231104/340b7c248a2fff875289157d194f1c29.png"></image>
					初试分数线
				</view>
				<view class="firstEchartBox">
					<qiun-data-charts type="line" :opts="lineOpts" :chartData="{
						categories:categories2,
						series: this.seriesData2
					}" />
				</view>
				<view class="cxsfxTableBox">
					<v-tabs v-model="tabChoose1" :tabs="tabs4" @change="averhandleClick4" activeColor="#333"
						lineColor="#0BB976"></v-tabs>
					<view class="tabBox"></view>
					<wyb-table ref="cjzktable" :headers="tableHeaderss" :contents="averCountdetaiLefttableData" width="100%" />
				</view>
			</view>
			<view class="morezx ledai" v-show="pjfdetaiLefttableData1Show">
				<view class="little_words">
					<image class="little_words_icon" src="https://image.alhelp.net/uploads/20231104/340b7c248a2fff875289157d194f1c29.png"></image>
					初试成绩（按第一志愿口径）
				</view>
				<view class="firstEchartBox">
					<view class="subtext"> {{ cscjShowName }} </view>
					<qiun-data-charts type="column" :opts="opts" :chartData="{
						categories:categories3,
						series: seriesData3
					}" />

					<!-- <groupEcharts ref="groupEcharts3" :xRotateLabel="true" :xRotateAngle="-20" :categories="categories3"
						:seriesData="seriesData3"></groupEcharts> -->
				</view>
				<view class="firstEchartBox">
					<qiun-data-charts type="line" :opts="lineOpts" :chartData="{
						categories:categories4,
						series: seriesData4
					}" />
				</view>

				<view class="cscjTableBox">
					<v-tabs v-model="tabChoose2" :tabs="tabs1" @change="averhandleClick1" activeColor="#333"
						lineColor="#0BB976"></v-tabs>
					<view class="tabBox"></view>
					<wyb-table ref="cjzktable" :headers="pjftableHeaderss1" :contents="pjfdetaiLefttableData1" width="100%" />
				</view>
			</view>
			<view class="morezx ledai" v-show="adjustLefttableData1Show">
				<view class="little_words">
					<image class="little_words_icon" src="https://image.alhelp.net/uploads/20231104/340b7c248a2fff875289157d194f1c29.png"></image>
					初试成绩（按调剂口径）
				</view>
				<view class="firstEchartBox">
					<view class="subtext">
						{{ adJustShowName }}
					</view>
					<qiun-data-charts type="column" :opts="opts" :chartData="{
						categories:categories5,
						series: seriesData5
					}" />
					<!-- <groupEcharts ref="groupEcharts5" :xRotateLabel="true" :xRotateAngle="-20" :categories="categories5"
						:seriesData="seriesData5"></groupEcharts> -->
				</view>

				<view class="firstEchartBox">
					<qiun-data-charts type="line" :opts="lineOpts" :chartData="{
						categories:categories6,
						series: seriesData6
					}" />
				</view>
				<view class="cscjTableBox">
					<v-tabs v-model="tabChoose3" :tabs="tabs1" @change="adJusthandleClick1" activeColor="#333"
						lineColor="#0BB976"></v-tabs>
					<view class="tabBox"></view>
					<wyb-table ref="cjzktable" :headers="adJustHeaderss1" :contents="adjustLefttableData1" width="100%" />
				</view>
			</view>
			<view class="morezx ledai" v-show="pjfdetaiLefttableData2Show">
				<view class="little_words">
					<image class="little_words_icon" src="https://image.alhelp.net/uploads/20231104/340b7c248a2fff875289157d194f1c29.png"></image>
					复试成绩
				</view>
				<view class="firstEchartBox" v-show="false">
					<view class="subtext"> {{ fscjShowName }} </view>
					<qiun-data-charts type="column" :opts="opts" :chartData="{
						categories:categories7,
						series: seriesData7
					}" />
				</view>
				<view class="firstEchartBox">
					<qiun-data-charts type="line" :opts="lineOpts" :chartData="{
						categories:categories8,
						series: seriesData8
					}" />
				</view>
				<view class="fscjTableBox">
					<v-tabs v-model="tabChoose4" :tabs="tabs2" @change="averhandleClick2" activeColor="#333"
						lineColor="#0BB976"></v-tabs>
					<view class="tabBox"></view>
					<wyb-table ref="cjzktable" :headers="pjftableHeaderss2" :contents="pjfdetaiLefttableData2" width="100%" />
				</view>
			</view>
			<view class="morezx ledai" v-show="pjfdetaiLefttableDataShow">
				<view class="little_words">
					<image class="little_words_icon" src="https://image.alhelp.net/uploads/20231104/340b7c248a2fff875289157d194f1c29.png"></image>
					录取成绩
				</view>
				<view class="firstEchartBox" v-show="false">
					<view class="subtext"> {{ tabShowName }}</view>
					<qiun-data-charts type="column" :opts="opts" :chartData="{
						categories:categories10,
						series: seriesData10
					}" />
				</view>
				<view class="firstEchartBox">
					<qiun-data-charts type="line" :opts="lineOpts" :chartData="{
						categories:categories9,
						series: seriesData9
					}" />
					<lineEcharts ref="lineEcharts9" :categories="categories9" :seriesData="seriesData9"></lineEcharts>
				</view>
				<view class="cjzkTableBox">
					<v-tabs v-model="tabChoose5" :tabs="tabs" @change="averhandleClick" activeColor="#333"
						lineColor="#0BB976"></v-tabs>
					<view class="tabBox"></view>
					<wyb-table ref="cjzktable" :headers="pjftableHeaderss" :contents="pjfdetaiLefttableData" width="100%" />
				</view>
			</view>
		</view>

	</view>
</template>

<script>
	import topPage from "./top-page.vue"
	import {
		getMajorList,
		firstScoreRate,
		getScoreSection,
		getScoreMajorYears,
		getMaxEnrollInfoYears,
		getblb,
		getAdjustSource,
		getAdjustGo
	} from '@/api/toolbox.js'
	import wybTable from '@/pages/toolbox/components/wyb-table/wyb-table.vue'
	import vTabs from '@/pages/toolbox/components/v-tabs/components/v-tabs/v-tabs.vue';
	import groupEcharts from '@/pages/toolbox/components/qiun-echarts/group.vue';
	import lineEcharts from '@/pages/toolbox/components/qiun-echarts/line.vue';
	import pieEcharts from '@/pages/toolbox/components/qiun-echarts/pie.vue';

	import qiunDataCharts from "@/pages/toolbox/components/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue"

	export default {
		components: {
			qiunDataCharts,
			vTabs,
			wybTable,
			groupEcharts,
			lineEcharts,
			pieEcharts,
			topPage,
		},
		data() {
			return {
				lineOpts: {
					color: ["#91CB74", "#FAC858", "#1890FF", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4", "#ea7ccc"],
					padding: [15, 10, 0, 15],
					dataLabel: false,
					dataPointShape: true, //是否显示数据点的图形标识
					dataPointShapeType: 'hollow', //图形标识点显示类型，可选值：'solid'实心,'hollow'空心
					enableScroll: false,
					legend: {
						show: true,
						position: 'top',
						fontSize: '11',
						fontColor: '#333',
						float: 'center',
					},
					xAxis: {
						disableGrid: true,
						marginTop: 2,
						lineHeight: '30',
						calibration: true, //坐标轴刻度线
						fontColor: '#333',
						fontSize: 11,
						rotateLabel: false, //【旋转】数据点（刻度点）文字
						rotateAngle: 0, //开启上面旋转功能后，文字旋转的角度，取值范围(-90至90)
					},
					yAxis: {
						gridType: "dash", //solid，dash
						dashLength: 2,
						splitNumber: 5,
						data: [{
							min: 0,
							max: 800,
							fontSize: 11,
							fontColor: '#333',
							calibration: true,
						}]
					},
					extra: {
						line: {
							type: 'straight',
							width: 2,
							activeType: 'hollow',
							linearType: 'none',
							// onShadow: true,
							activeBgColor: "#333",
							activeBgOpacity: 0.08,
							seriesGap: 3,
							barBorderCircle: true,
						},
					}
				},
				pieOpts: {
					color: ["#91CB74", "#FAC858", "#1890FF", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4", "#ea7ccc"],
					padding: [5, 5, 5, 5],
					enableScroll: false,
					legend: {
						show: true,
						position: "bottom",
						float: 'left',
						fontSize: 11,
						fontColor: '#333',
						itemGap: 4
					},
					extra: {
						pie: {
							activeOpacity: 0.5,
							activeRadius: 10,
							offsetAngle: 0,
							labelWidth: 15,
							border: true,
							borderWidth: 3,
							borderColor: "#FFFFFF"
						}
					}
				},
				columOpts: {
					padding: [15, 10, 0, 15],
					dataLabel: false,
					dataPointShape: true, //是否显示数据点的图形标识
					dataPointShapeType: 'hollow', //图形标识点显示类型，可选值：'solid'实心,'hollow'空心
					enableScroll: false,
					legend: {
						show: true,
						position: 'top',
						fontSize: '11',
						fontColor: '#333',
						float: 'center',
					},
					xAxis: {
						disableGrid: true,
						marginTop: 2,
						lineHeight: '30',
						calibration: true, //坐标轴刻度线
						fontColor: '#333',
						fontSize: 11,
						rotateLabel: false, //【旋转】数据点（刻度点）文字
						rotateAngle: 0, //开启上面旋转功能后，文字旋转的角度，取值范围(-90至90)
					},
					yAxis: {
						gridType: "dash", //solid，dash
						dashLength: 2,
						splitNumber: 5,
						data: [{
							min: 0,
							fontSize: 11,
							fontColor: '#333',
							calibration: true,
						}]
					},
					extra: {
						line: {
							type: 'straight',
							width: 2,
							activeType: 'hollow',
							linearType: 'none',
							activeBgColor: "#333",
							activeBgOpacity: 0.08,
							seriesGap: 3,
							barBorderCircle: true,
						},
					}
				},
				opts: {
					padding: [15, 10, 0, 15],
					dataLabel: false,
					dataPointShape: true, //是否显示数据点的图形标识
					dataPointShapeType: 'hollow', //图形标识点显示类型，可选值：'solid'实心,'hollow'空心
					enableScroll: false,
					legend: {
						show: true,
						position: 'top',
						fontSize: '11',
						fontColor: '#333',
						float: 'center',
					},
					xAxis: {
						disableGrid: true,
						marginTop: 2,
						lineHeight: '30',
						calibration: true, //坐标轴刻度线
						fontColor: '#333',
						fontSize: 10,
						rotateLabel: true, //【旋转】数据点（刻度点）文字
						rotateAngle: -20, //开启上面旋转功能后，文字旋转的角度，取值范围(-90至90)
					},
					yAxis: {
						gridType: "dash", //solid，dash
						dashLength: 2,
						splitNumber: 5,
						data: [{
							min: 0,
							fontSize: 11,
							fontColor: '#333',
							calibration: true,
						}]
					},
					extra: {
						line: {
							type: 'straight',
							width: 2,
							activeType: 'hollow',
							linearType: 'none',
							activeBgColor: "#333",
							activeBgOpacity: 0.08,
							seriesGap: 3,
							barBorderCircle: true,
						},
					}
				},
				tabChoose1: 0,
				tabChoose2: 0,
				tabChoose3: 0,
				tabChoose4: 0,
				tabChoose5: 0,
				// 报录比
				categories1: ["招生计划", "录取数", "保研数", "调剂数", '第一志愿'],
				seriesData1: [],
				categories2: ["英语", "政治", "专业一", "专业二", '总分'],
				seriesData2: [],
				categories3: [],
				seriesData3: [],
				categories4: ["平均分", "最低分", "最高分"],
				seriesData4: [],
				categories5: [],
				seriesData5: [],
				categories6: ["平均分", "最低分", "最高分"],
				seriesData6: [],
				categories7: ["平均分", "最低分", "最高分"],
				seriesData7: [],
				categories8: ["平均分", "最低分", "最高分"],
				seriesData8: [],
				categories9: ["平均分", "最低分", "最高分"],
				seriesData9: [],
				categories10: [],
				seriesData10: [],
				seriesData11: [],
				seriesData12: [],
				adjustSource1: [], //调剂来源
				adjustGo: [], //调剂去向
				adjustSource1TableHeader: [{
						label: '大学名称',
						key: 'schoolName'
					},
					{
						label: '序号',
						key: 'i'
					},
					{
						label: '省市',
						key: 'province'
					},
					{
						label: '类型',
						key: 'schoolType'
					},
					{
						label: '2023年人数',
						key: 'studentN0'
					},
					{
						label: '2022年人数',
						key: 'studentN1'
					},
					{
						label: '2021年人数',
						key: 'studentN2'
					},
					{
						label: '2020年人数',
						key: 'studentN3'
					},
				], //调剂来源表头
				adjustGoTableHeaderss: [], //调剂去向表头

				firstTableDataShow: false,
				averCountdetaiLefttableDataShow: false,
				pjfdetaiLefttableData1Show: false,
				adjustLefttableData1Show: false,
				pjfdetaiLefttableData2Show: false,
				pjfdetaiLefttableDataShow: false,

				isChShow: false,
				// mapChart0:'mapChart0',
				fscjShowName: "",
				cscjShowName: "",
				adJustShowName: "",
				tabShowName: "",
				majorList: {}, //该专业统计
				// averactiveName4: "",
				tableHeaderss: [],
				averCountdetaiLefttableData: [],
				pjfTotalInfoList: [],
				firstTableData: [],

				yearOptions: [],
				pjftableHeaderss: [], //录取成绩--表格
				pjftableHeaderss1: [], //按第一志愿统计初试成绩 表格标题
				adJustHeaderss1: [], //按调剂录取人员统计初试成绩 表格标题
				pjftableHeaderss2: [],
				pjfdetaiLefttableData: [], //录取成绩表格数据
				pjfdetaiLefttableData1: [], //按第一志愿统计初试成绩 表格数据
				adjustLefttableData1: [], //按调剂录取人员统计初试成绩 表格数据
				pjfdetaiLefttableData2: [], //复试成绩表格数据
				pjfFirstInfo: [],
				nowClickRow: {},
				tabs: ["初试总分", "复试总分", "录取总分"],
				tabs1: ["初试总分", "英语", "政治", "专一", "专二"],
				tabs2: ["复试总分", "英语", "复试专业课", "综合面试", "政治考核", ],
				tabs4: ["初试总分", "英语", "政治", "专一", "专二"],
				headers: [],
				titleValue: [],
				firstValue: [],
				secondValue: [],
				thirdValue: [],
				fourValue: [],
				// tableTitle: [],
				iStatusBarHeight: 0,
			};
		},
		onReady() {
			this.getTopYear();
			// uni.hideHomeButton()
			// this.nowClickRow = this.$store.state.systemInfo.currentChoose
		},
		onLoad(options) {
			this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight + 10;
			this.nowClickRow = {
				...options
			}
			//是否查看demo
			if (options.isDemo == 1) {
				this.nowClickRow.majorCode = '045115';
				this.nowClickRow.collegeCode = '005';
				this.nowClickRow.schoolCode = '10691';
			}

			this.getMajorList(options);
			uni.showLoading({
				title: '页面加载中'
			});
			this.$nextTick(() => {
				setTimeout(() => {
					this.getAdjustSource();
					this.getAdjustGo();
					this.getcjzkEchat3();
					this.getcjzkEchat4();
					this.getcjzkEchat1();
					this.getadJustEchat1();
					this.getcjzkEchat2();
					this.getcjzkEchat();
				}, 3000)
			})
		},
		methods: {
			handleCate10Opts() {
				return {
					padding: [15, 10, 0, 15],
					dataLabel: false,
					dataPointShape: true, //是否显示数据点的图形标识
					dataPointShapeType: 'hollow', //图形标识点显示类型，可选值：'solid'实心,'hollow'空心
					enableScroll: false,
					legend: {
						show: true,
						position: 'top',
						fontSize: '11',
						fontColor: '#333',
						float: 'center',
					},
					xAxis: {
						disableGrid: true,
						marginTop: 2,
						lineHeight: '30',
						calibration: true, //坐标轴刻度线
						fontColor: '#333',
						fontSize: 11,
						rotateLabel: true, //【旋转】数据点（刻度点）文字
						rotateAngle: -20, //开启上面旋转功能后，文字旋转的角度，取值范围(-90至90)
					},
					yAxis: {
						gridType: "dash", //solid，dash
						dashLength: 2,
						splitNumber: 5,
						data: [{
							min: 0,
							max: 800,
							fontSize: 11,
							fontColor: '#333',
							calibration: true,
						}]
					},
					extra: {
						line: {
							type: 'straight',
							width: 2,
							activeType: 'hollow',
							linearType: 'none',
							activeBgColor: "#333",
							activeBgOpacity: 0.08,
							seriesGap: 3,
							barBorderCircle: true,
						},
					}
				}
			},
			goback() {
				uni.navigateBack({
					delta: 1
				})
			},
			//获取专业列表
			getMajorList(options) {
				var myDate = new Date();
				let data = myDate.getFullYear()
				if (options.collegeCode != undefined || options.collegeCode) {
					getMajorList({
						'year': data,
						'collegeCode': options.collegeCode,
						'majorCode': options.majorCode,
						'schoolCode': options.schoolCode,
						'pageNum': 1,
						'pageSize': 100

					}).then(res => {
						console.warn('res', res)
						this.majorList = res.data.rows[0]
					})
				}
			},

			// 调剂来源
			async getAdjustSource() {
				await getAdjustSource({
					majorCode: this.nowClickRow.majorCode,
					schoolCode: this.nowClickRow.schoolCode,
					year: this.yearOptions[0] || new Date().getFullYear(),
					collegeCode: this.nowClickRow.collegeCode,
				}).then((res) => {
					console.warn('调剂来源', res);
					// this.adjustSource1 = res.data;
					// for(let item of res.data.list){
					if (res.data && res.data.list && res.data.list.length) {
						res.data.list.forEach((item, index) => {
							item.i = index + 1
						})
						this.adjustSource1 = res.data.list;
						this.seriesData11 = res.data.pieDataVos
					}
				})
			},

			// 调剂去向
			async getAdjustGo() {
				await getAdjustGo({
					majorCode: this.nowClickRow.majorCode,
					schoolCode: this.nowClickRow.schoolCode,
					year: this.yearOptions[0] || new Date().getFullYear(),
					collegeCode: this.nowClickRow.collegeCode,
				}).then((res) => {
					console.warn('调剂去向', res);
					if (res.data.list && res.data.list.length) {
						res.data.list.forEach((item, index) => {
							item.i = index + 1
						})
						this.adjustGo = res.data.list;

						this.seriesData12 = res.data.pieDataVos;
					}
				})
			},
			// 成绩总括echarts上初始化
			getcjzkEchat(canvas, width, height) {
				this.averhandleClick("", canvas, width, height)
				// this.getpjfScoresAllInfo(canvas, width, height)//成绩总括
			},
			// 初试成绩（按第一志愿口径）折线图
			getcjzkEchat1(canvas, width, height) {
				this.averhandleClick1("", canvas, width, height);
			},
			// 初试成绩（按调剂统计）折线图
			getadJustEchat1(canvas, width, height) {
				this.adJusthandleClick1("", canvas, width, height);
			},
			// 平均报录比echarts上初始化
			getcjzkEchat3(canvas, width, height) {
				this.averhandleClick3("", canvas, width, height);
			},
			// 初试分数线echarts初始化
			getcjzkEchat4(canvas, width, height) {
				var yearValue = ""
				if (this.yearOptions) {
					this.yearOptions.forEach((item) => {
						yearValue += item + ","
					})
				}
				firstScoreRate({
					majorCode: this.nowClickRow.majorCode,
					schoolCode: this.nowClickRow.schoolCode,
					collegeCode: this.nowClickRow.collegeCode,
					year: yearValue ? yearValue.slice(0, yearValue.length - 1) : "2023,2022,2021,2020",
				}).then(res => {
					console.warn('初试分数线', res.data)
					if (res.data && res.data['初试总分']) {
						for (var i in res.data['初试总分'][0]) {
							this.tableHeaderss.push({
								label: i,
								key: i,
								width: 130
							});
						}
						this.tableHeaderss.reverse();
						this.tableHeaderss[0].width = 155;
						this.averCountdetaiLefttableData = res.data['初试总分'];
						if (this.averCountdetaiLefttableData.length > 0) {
							this.averCountdetaiLefttableDataShow = true
						}
						this.pjfTotalInfoList = res.data;
						//初试分数线
						this.getaverCount(res.data, canvas, width, height);
					}
				})
			},

			averCounthandleClick() {
				this.averhandleClick()
			},
			getaverCount(res, canvas, width, height) {
				var textInfo = [];
				var firstCountInfo = [];
				var secondCountInfo = [];
				var thirdCountInfo = [];
				var fourCountInfo = [];
				var data = [];
				var dataSecond = [];
				var dataThird = [];
				var datafour = [];
				let num = 5;
				var yearValue = ""
				this.yearOptions.forEach((item) => {
					yearValue += item + ","
				})
				res['英语'].forEach((item) => {
					if (item["分类"] == "普通") {
						//普通是测试 常规是正确的
						firstCountInfo.push(Object.values(item)[3].replace('-', ''))
						secondCountInfo.push(Object.values(item)[2].replace('-', ''))
						thirdCountInfo.push(Object.values(item)[1].replace('-', ''))
						fourCountInfo.push(Object.values(item)[0].replace('-', ''))
					}
				})
				res['政治'].forEach((item) => {
					if (item["分类"] == "普通") {
						//普通是测试 常规是正确的
						firstCountInfo.push(Object.values(item)[3].replace('-', ''))
						secondCountInfo.push(Object.values(item)[2].replace('-', ''))
						thirdCountInfo.push(Object.values(item)[1].replace('-', ''))
						fourCountInfo.push(Object.values(item)[0].replace('-', ''))
					}
				})
				res['专一'].forEach((item) => {
					if (item["分类"] == "普通") {
						//普通是测试 常规是正确的
						firstCountInfo.push(Object.values(item)[3].replace('-', ''))
						secondCountInfo.push(Object.values(item)[2].replace('-', ''))
						thirdCountInfo.push(Object.values(item)[1].replace('-', ''))
						fourCountInfo.push(Object.values(item)[0].replace('-', ''))
					}
				})
				res['专二'].forEach((item) => {
					if (item["分类"] == "普通") {
						//普通是测试 常规是正确的
						firstCountInfo.push(Object.values(item)[3].replace('-', ''))
						secondCountInfo.push(Object.values(item)[2].replace('-', ''))
						thirdCountInfo.push(Object.values(item)[1].replace('-', ''))
						fourCountInfo.push(Object.values(item)[0].replace('-', ''))
					}
				})
				res['初试总分'].forEach((item) => {
					if (item["分类"] == "普通") {
						//普通是测试 常规是正确的
						firstCountInfo.push(Object.values(item)[3].replace('-', ''))
						secondCountInfo.push(Object.values(item)[2].replace('-', ''))
						thirdCountInfo.push(Object.values(item)[1].replace('-', ''))
						fourCountInfo.push(Object.values(item)[0].replace('-', ''))
					}
				})
				this.seriesData2 = [{
						"name": this.yearOptions[0],
						"data": firstCountInfo
					},
					{
						"name": this.yearOptions[1],
						"data": secondCountInfo
					},
					{
						"name": this.yearOptions[2],
						"data": thirdCountInfo
					},
					{
						"name": this.yearOptions[3],
						"data": fourCountInfo
					},
				]
			},

			//成绩总括echarts下初始化
			getcjzkEchatBottom(canvas, width, height, tableData) {
				this.getcjzkBottom(canvas, width, height)
			},

			//初试成绩-按调剂统计 echarts下初始化
			getAdjustEchatBottom1(canvas, width, height, tableData) {
				var first_x_value = [];
				var second_x_value = [];
				var third_x_value = [];
				var four_x_value = [];
				tableData.forEach((item) => {
					if (item['分数区间'] == '平均分' || item['分数区间'] == '最低分' || item['分数区间'] == '最高分') {
						first_x_value.push(Object.values(item)[1]);
						second_x_value.push(Object.values(item)[2]);
						third_x_value.push(Object.values(item)[3]);
						four_x_value.push(Object.values(item)[4]);
					}
				});
			},

			// 复试成绩echarts上初始化
			getcjzkEchat2(canvas, width, height) {
				this.averhandleClick2(0, canvas, width, height)
			},

			// 复试成绩echarts下初始化
			getcjzkEchatBottom2(canvas, width, height, tableData) {
				var first_x_value = [];
				var second_x_value = [];
				var third_x_value = [];
				var four_x_value = [];
				tableData.forEach((item) => {
					if (item['分数区间'] == '平均分' || item['分数区间'] == '最低分' || item['分数区间'] == '最高分') {
						first_x_value.push(Object.values(item)[1]);
						second_x_value.push(Object.values(item)[2]);
						third_x_value.push(Object.values(item)[3]);
						four_x_value.push(Object.values(item)[4]);
					}
				});
			},
			async getcjzkBottom(canvas, width, height, tableData) {
				var first_x_value = [];
				var second_x_value = [];
				var third_x_value = [];
				var four_x_value = [];
				tableData.forEach((item) => {
					if (item['分数区间'] == '平均分') {
						first_x_value.push(Object.values(item)[1].replace('-', ''));
						second_x_value.push(Object.values(item)[2].replace('-', ''));
						third_x_value.push(Object.values(item)[3].replace('-', ''));
						four_x_value.push(Object.values(item)[4].replace('-', ''));
					}
				});
				tableData.forEach((item) => {
					if (item['分数区间'] == '最低分') {
						first_x_value.push(Object.values(item)[1].replace('-', ''));
						second_x_value.push(Object.values(item)[2].replace('-', ''));
						third_x_value.push(Object.values(item)[3].replace('-', ''));
						four_x_value.push(Object.values(item)[4].replace('-', ''));
					}
				});
				tableData.forEach((item) => {
					if (item['分数区间'] == '最高分') {
						first_x_value.push(Object.values(item)[1].replace('-', ''));
						second_x_value.push(Object.values(item)[2].replace('-', ''));
						third_x_value.push(Object.values(item)[3].replace('-', ''));
						four_x_value.push(Object.values(item)[4].replace('-', ''));
					}
				});
				this.seriesData9 = [{
						"name": this.yearOptions[0],
						"data": first_x_value
					},
					{
						"name": this.yearOptions[1],
						"data": second_x_value
					},
					{
						"name": this.yearOptions[2],
						"data": third_x_value
					},
					{
						"name": this.yearOptions[3],
						"data": four_x_value
					},
				]
			},
			async getTopYear() {
				getMaxEnrollInfoYears().then((res) => {
					console.warn('res', res)
					this.yearOptions = res.data;
				})
			},

			//获取录取成绩所有数据
			async getpjfScoresAllInfo(tableData, canvas, width, height) {
				this.pjftableHeaderss = [];
				var first_x_value = [];
				var second_x_value = [];
				var third_x_value = [];
				var four_x_value = [];
				var titleValue = []
				var firstValue = []
				var secondValue = []
				var thirdValue = []
				var fourValue = [];
				var dataTableList = [];
				tableData.forEach((item) => {
					if (item['分数区间'] == '平均分') {
						first_x_value.push(Object.values(item)[1]);
						second_x_value.push(Object.values(item)[2]);
						third_x_value.push(Object.values(item)[3]);
						four_x_value.push(Object.values(item)[4]);
					}

					if (item['分数区间'] == '最低分') {
						first_x_value.push(Object.values(item)[1]);
						second_x_value.push(Object.values(item)[2]);
						third_x_value.push(Object.values(item)[3]);
						four_x_value.push(Object.values(item)[4]);
					}

					if (item['分数区间'] == '最高分') {
						first_x_value.push(Object.values(item)[1]);
						second_x_value.push(Object.values(item)[2]);
						third_x_value.push(Object.values(item)[3]);
						four_x_value.push(Object.values(item)[4]);
					}
					//新的逻辑操作
					titleValue.push(item['分数区间'])
					firstValue.push(Object.values(item)[1])
					secondValue.push(Object.values(item)[2])
					thirdValue.push(Object.values(item)[3])
					fourValue.push(Object.values(item)[4])

					if (item['分数区间'] == '最高分' || item['分数区间'] == '最低分' || item['分数区间'] == '平均分') {
						dataTableList.push(item);
					}
				});
				// this.pjfdetaiLefttableData = this.pjfFirstInfo.data;
				this.pjfdetaiLefttableData = dataTableList;
				if (this.pjfdetaiLefttableData.length > 0) {
					this.pjfdetaiLefttableDataShow = true;
				}

				for (var i in tableData[0]) {
					this.pjftableHeaderss.push({
						// label: i,
						label: i == '分数区间' ? '分类' : i.split("百分比").join(""),
						key: i,
						width: 116
					});
				}
				this.pjftableHeaderss[0].width = 220;

				//图表处理
				firstValue = firstValue.map((item) => {
					if (item.indexOf("%") > 0) {
						return item = item.substr(0, item.length - 1)
					}
				})
				secondValue = secondValue.map((item) => {
					if (item.indexOf("%") > 0) {
						return item = item.substr(0, item.length - 1)
					}
				})
				thirdValue = thirdValue.map((item) => {
					if (item.indexOf("%") > 0) {
						return item = item.substr(0, item.length - 1)
					}
				})
				fourValue = fourValue.map((item) => {
					if (item.indexOf("%") > 0) {
						return item = item.substr(0, item.length - 1)
					}
				})

				var toptitle = titleValue.slice(0, titleValue.length - 3);
				var topfirst = firstValue.slice(0, firstValue.length - 3);
				var topsecond = secondValue.slice(0, secondValue.length - 3);
				var topthree = thirdValue.slice(0, thirdValue.length - 3);
				var topfour = fourValue.slice(0, fourValue.length - 3);

				this.categories10 = toptitle;
				this.seriesData10 = [{
						"name": this.yearOptions[0],
						"data": topfirst
					},
					{
						"name": this.yearOptions[1],
						"data": topsecond
					},
					{
						"name": this.yearOptions[2],
						"data": topthree
					},
					{
						"name": this.yearOptions[3],
						"data": topfour
					},
				]
				this.getcjzkBottom("", "", "", tableData);
				uni.hideLoading();
			},

			//获取初试成绩所有数据-按第一志愿统计
			async getpjfScoresAllInfo1(tableData, canvas, width, height) {
				this.pjftableHeaderss1 = []
				var first_x_value = [];
				var second_x_value = [];
				var third_x_value = [];
				var four_x_value = [];
				var titleValue = []
				var firstValue = []
				var secondValue = []
				var thirdValue = []
				var fourValue = [];
				console.log('初试成绩-第一志愿', tableData);
				tableData.forEach((item) => {
					if (item['分数区间'] == '平均分' || item['分数区间'] == '最低分' || item['分数区间'] == '最高分') {
						first_x_value.push(Object.values(item)[1].replace('-', ''));
						second_x_value.push(Object.values(item)[2].replace('-', ''));
						third_x_value.push(Object.values(item)[3].replace('-', ''));
						four_x_value.push(Object.values(item)[4].replace('-', ''));
					}
					titleValue.push(item['分数区间'])
					firstValue.push(Object.values(item)[1])
					secondValue.push(Object.values(item)[2])
					thirdValue.push(Object.values(item)[3])
					fourValue.push(Object.values(item)[4])
				});

				this.pjfdetaiLefttableData1 = tableData;
				if (this.pjfdetaiLefttableData1.length > 0) {
					this.pjfdetaiLefttableData1Show = true;
				}

				for (var i in tableData[0]) {
					this.pjftableHeaderss1.push({
						label: i,
						key: i,
						width: 116
					});
				}
				this.pjftableHeaderss1[0].width = 220;

				//图表处理
				firstValue = firstValue.map((item) => {
					if (item.indexOf("%") > 0) {
						//substr(str.length-1,1)
						return item = item.substr(0, item.length - 1)
					}
				})
				secondValue = secondValue.map((item) => {
					if (item.indexOf("%") > 0) {
						return item = item.substr(0, item.length - 1)
					}
				})
				thirdValue = thirdValue.map((item) => {
					if (item.indexOf("%") > 0) {
						return item = item.substr(0, item.length - 1)
					}
				})
				fourValue = fourValue.map((item) => {
					if (item.indexOf("%") > 0) {
						return item = item.substr(0, item.length - 1)
					}
				})

				var toptitle = titleValue.slice(0, titleValue.length - 3);
				var topfirst = firstValue.slice(0, firstValue.length - 3);
				var topsecond = secondValue.slice(0, secondValue.length - 3);
				var topthree = thirdValue.slice(0, thirdValue.length - 3);
				var topfour = fourValue.slice(0, fourValue.length - 3);
				// var bottomtitle = titleValue.slice(-3);

				this.categories3 = toptitle;
				this.seriesData3 = [{
						"name": this.yearOptions[0],
						"data": topfirst
					},
					{
						"name": this.yearOptions[1],
						"data": topsecond
					},
					{
						"name": this.yearOptions[2],
						"data": topthree
					},
					{
						"name": this.yearOptions[3],
						"data": topfour
					},
				];
				this.seriesData4 = [{
						"name": this.yearOptions[0],
						"data": first_x_value
					},
					{
						"name": this.yearOptions[1],
						"data": second_x_value
					},
					{
						"name": this.yearOptions[2],
						"data": third_x_value
					},
					{
						"name": this.yearOptions[3],
						"data": four_x_value
					},
				];
			},

			// 复试成绩 操作
			async averhandleClick2(tab, canvas, width, height) {
				let params = {
					majorCode: this.nowClickRow.majorCode,
					year: this.yearOptions[0] || new Date().getFullYear(),
					dataSource: 1,
					sectionType: 'retestTotal',
					schoolCode: this.nowClickRow.schoolCode,
					collegeCode: this.nowClickRow.collegeCode,
				}

				if (tab == 0 || !tab) {
					this.fscjShowName = "复试总分";
					params.sectionType = 'retestTotal';
				} else if (tab == 1) {
					this.fscjShowName = "英语";
					params.sectionType = 'retestEnglish';
				} else if (tab == 2) {
					this.fscjShowName = "复试专业课";
					params.sectionType = 'retestMajor';

				} else if (tab == 3) {
					this.fscjShowName = "综合面试"
					params.sectionType = 'interviewTotal';
				} else if (tab == 4) {
					this.fscjShowName = "政治考核"
					params.sectionType = 'retestPolitics';
				}
				// this.pjfdetaiLefttableData2 = [];
				// this.pjftableHeaderss2 = [];
				let dataLists = await getScoreSection(params);
				this.getpjfScoresAllInfo2(dataLists.data, canvas, width, height)
				// this.getcjzkBottom(this.pjfdetaiLefttableData, canvas, width, height)
			},

			//获取复试成绩所有数据
			async getpjfScoresAllInfo2(tableData, canvas, width, height) {
				var first_x_value = [];
				var second_x_value = [];
				var third_x_value = [];
				var four_x_value = [];
				var titleValue = []
				var firstValue = []
				var secondValue = []
				var thirdValue = []
				var fourValue = [];
				// let tableDataList = [];
				this.pjfdetaiLefttableData2 = tableData;
				if (this.pjfdetaiLefttableData2.length > 0) {
					this.pjfdetaiLefttableData2Show = true;
				}
				this.pjftableHeaderss2 = [];
				for (var i in tableData[0]) {
					this.pjftableHeaderss2.push({
						// label: i
						label: i == '分数区间' ? '分类' : i.split("百分比").join(""),
						key: i,
						width: 116
					});
				}
				this.pjftableHeaderss2[0].width = 220;
				tableData.forEach((item) => {
					if (item['分数区间'] == '平均分' || item['分数区间'] == '最低分' || item['分数区间'] == '最高分') {
						first_x_value.push(Object.values(item)[1].replace('-', ''));
						second_x_value.push(Object.values(item)[2].replace('-', ''));
						third_x_value.push(Object.values(item)[3].replace('-', ''));
						four_x_value.push(Object.values(item)[4].replace('-', ''));
						// tableDataList.push(item);
					}
					//新的逻辑操作
					// titleValue.push(item['分数区间'])
					// firstValue.push(Object.values(item)[1].replace('-',''))
					// secondValue.push(Object.values(item)[2].replace('-',''))
					// thirdValue.push(Object.values(item)[3].replace('-',''))
					// fourValue.push(Object.values(item)[4]).replace('-','');
					// if(item['分数区间'] == '平均分' || item['分数区间'] == '最低分' || item['分数区间'] == '最高分'){
					//     tableDataList.push(item);
					// }
				});
				this.seriesData8 = [{
						"name": this.yearOptions[0],
						"data": first_x_value
					},
					{
						"name": this.yearOptions[1],
						"data": second_x_value
					},
					{
						"name": this.yearOptions[2],
						"data": third_x_value
					},
					{
						"name": this.yearOptions[3],
						"data": four_x_value
					},
				]

				//图表数据处理
				// firstValue = firstValue.map((item) => {
				// 	if (item.indexOf("%") > 0) {
				// 		return item = item.substr(0, item.length - 1)
				// 	}
				// })
				// secondValue = secondValue.map((item) => {
				// 	if (item.indexOf("%") > 0) {
				// 		return item = item.substr(0, item.length - 1)
				// 	}
				// })
				// thirdValue = thirdValue.map((item) => {
				// 	if (item.indexOf("%") > 0) {
				// 		return item = item.substr(0, item.length - 1)
				// 	}
				// })
				// fourValue = fourValue.map((item) => {
				// 	if (item.indexOf("%") > 0) {
				// 		return item = item.substr(0, item.length - 1)
				// 	}
				// })
				// var toptitle = titleValue.slice(0, titleValue.length - 3);
				// var topfirst = firstValue.slice(0, firstValue.length - 3);
				// var topsecond = secondValue.slice(0, secondValue.length - 3);
				// var topthree = thirdValue.slice(0, thirdValue.length - 3);
				// var topfour = fourValue.slice(0, fourValue.length - 3);
				// var bottomtitle = titleValue.slice(-3);
				// this.categories7 = toptitle;
				// this.seriesData7 = [
				// 	{"name":  this.yearOptions[0], "data": topfirst},
				// 	{"name":  this.yearOptions[1], "data": topsecond},
				// 	{"name":  this.yearOptions[2], "data": topthree},
				// 	{"name":  this.yearOptions[3], "data": topfour},
				// ]

			},

			async averhandleClick(tab, canvas, width, height) {
				let sectionType = 'firstTotal';
				var first_x_value = [];
				var second_x_value = [];
				var third_x_value = [];
				var four_x_value = [];
				var titleValue = []
				var firstValue = []
				var secondValue = []
				var thirdValue = []
				var fourValue = [];

				if (tab == 0 || !tab) {
					this.tabShowName = "初试总分";
					sectionType = 'firstTotal';
				} else if (tab == 1) {
					this.tabShowName = "复试总分";
					sectionType = 'retestTotal';
				} else if (tab == 2) {
					this.tabShowName = "录取总分";
					sectionType = 'enrollTotal';
				}
				await getScoreSection({
					majorCode: this.nowClickRow.majorCode,
					year: this.yearOptions[0] || new Date().getFullYear(),
					dataSource: 1,
					sectionType: sectionType,
					schoolCode: this.nowClickRow.schoolCode,
					collegeCode: this.nowClickRow.collegeCode,
				}).then(res => {
					res.data.forEach((item) => {
						if (item['分数区间'] == '平均分' || item['分数区间'] == '最低分' || item['分数区间'] == '最高分') {
							first_x_value.push(Object.values(item)[1]);
							second_x_value.push(Object.values(item)[2]);
							third_x_value.push(Object.values(item)[3]);
							four_x_value.push(Object.values(item)[4]);
						};
						titleValue.push(item['分数区间']);
						firstValue.push(Object.values(item)[1]);
						secondValue.push(Object.values(item)[2]);
						thirdValue.push(Object.values(item)[3]);
						fourValue.push(Object.values(item)[4]);
					})

					this.pjftableHeaderss = [];
					for (var i in res.data[0]) {
						this.pjftableHeaderss.push({
							label: i,
							key: i
						});
					}
					this.pjfdetaiLefttableData = res.data;
					if (this.pjfdetaiLefttableData.length > 0) {
						this.pjfdetaiLefttableDataShow = true;
					}
					this.getpjfScoresAllInfo(res.data, canvas, width, height)
				})

				// this.getcjzkBottom(this.pjfdetaiLefttableData, canvas, width, height)
			},

			// 初试成绩-按第一志愿表格点击事件
			async averhandleClick1(tab, canvas, width, height) {
				let sectionType = 'firstTotal';
				if (tab == 0 || !tab) {
					this.cscjShowName = "初试总分"
					sectionType = 'firstTotal';
				} else if (tab == 1) {
					this.cscjShowName = "英语"
					sectionType = 'firstEnglish';
				} else if (tab == 2) {
					this.cscjShowName = "政治"
					sectionType = 'firstPolitics';
				} else if (tab == 3) {
					this.cscjShowName = "专一";
					sectionType = 'firstMajor1';
				} else if (tab == 4) {
					this.cscjShowName = "专二";
					sectionType = 'firstMajor2';
				}
				await getScoreSection({
					majorCode: this.nowClickRow.majorCode,
					year: this.yearOptions[0] || new Date().getFullYear(),
					dataSource: 1,
					sectionType: sectionType,
					schoolCode: this.nowClickRow.schoolCode,
					collegeCode: this.nowClickRow.collegeCode,
				}).then(res => {
					this.getpjfScoresAllInfo1(res.data, canvas, width, height)
				})
			},
			// 初试成绩-按调剂口径表格点击事件
			async adJusthandleClick1(tab, canvas, width, height) {
				let params = {
					majorCode: this.nowClickRow.majorCode,
					year: this.yearOptions[0] || new Date().getFullYear(),
					dataSource: 1,
					sectionType: 'firstTotal',
					schoolCode: this.nowClickRow.schoolCode,
					collegeCode: this.nowClickRow.collegeCode,
					isAdjust: true,
				}

				if (tab == 0 || !tab) {
					this.adJustShowName = "初试总分";
					params.sectionType = 'firstTotal';
				} else if (tab == 1) {
					this.adJustShowName = "英语";
					params.sectionType = 'firstEnglish';
				} else if (tab == 2) {
					this.adJustShowName = "政治";
					params.sectionType = 'firstPolitics';
				} else if (tab == 3) {
					this.adJustShowName = "专一"
					params.sectionType = 'firstMajor1';
				} else if (tab == 4) {
					this.adJustShowName = "专二"
					params.sectionType = 'firstMajor2';
				}
				await getScoreSection(params).then(res => {
					this.adjustScoresAllInfo1(res.data, canvas, width, height);
				})
			},

			//获取初试成绩所有数据-按调剂录取人员统计人员
			async adjustScoresAllInfo1(tableData, canvas, width, height) {
				this.adJustHeaderss1 = [];
				this.adjustLefttableData1 = [];
				var first_x_value = [];
				var second_x_value = [];
				var third_x_value = [];
				var four_x_value = [];
				var titleValue = []
				var firstValue = []
				var secondValue = []
				var thirdValue = []
				var fourValue = [];
				tableData.forEach((item) => {
					if (item['分数区间'] == '平均分' || item['分数区间'] == '最低分' || item['分数区间'] == '最高分') {
						first_x_value.push(Object.values(item)[1].replace('-', ''));
						second_x_value.push(Object.values(item)[2].replace('-', ''));
						third_x_value.push(Object.values(item)[3].replace('-', ''));
						four_x_value.push(Object.values(item)[4].replace('-', ''));
					}
					//新的逻辑操作
					titleValue.push(item['分数区间']);
					firstValue.push(Object.values(item)[1].replace('-', ''));
					secondValue.push(Object.values(item)[2].replace('-', ''));
					thirdValue.push(Object.values(item)[3].replace('-', ''));
					fourValue.push(Object.values(item)[4].replace('-', ''));
				});

				this.adjustLefttableData1 = tableData;
				if (this.adjustLefttableData1.length > 0) {
					this.adjustLefttableData1Show = true;
				}

				for (var i in tableData[0]) {
					this.adJustHeaderss1.push({
						label: i,
						key: i,
						width: 116
					});
				}
				this.adJustHeaderss1[0].width = 220;
				// this.pjfdetaiLefttableData = this.pjfFirstInfo.data;
				//图表处理
				firstValue = firstValue.map((item) => {
					if (item.indexOf("%") > 0) {
						return item = item.substr(0, item.length - 1)
					}
				})
				secondValue = secondValue.map((item) => {
					if (item.indexOf("%") > 0) {
						return item = item.substr(0, item.length - 1)
					}
				})
				thirdValue = thirdValue.map((item) => {
					if (item.indexOf("%") > 0) {
						return item = item.substr(0, item.length - 1)
					}
				})
				fourValue = fourValue.map((item) => {
					if (item.indexOf("%") > 0) {
						return item = item.substr(0, item.length - 1)
					}
				})

				var toptitle = titleValue.slice(0, titleValue.length - 3);
				var topfirst = firstValue.slice(0, firstValue.length - 3);
				var topsecond = secondValue.slice(0, secondValue.length - 3);
				var topthree = thirdValue.slice(0, thirdValue.length - 3);
				var topfour = fourValue.slice(0, fourValue.length - 3);

				this.categories5 = toptitle;
				this.seriesData5 = [{
						"name": this.yearOptions[0],
						"data": topfirst
					},
					{
						"name": this.yearOptions[1],
						"data": topsecond
					},
					{
						"name": this.yearOptions[2],
						"data": topthree
					},
					{
						"name": this.yearOptions[3],
						"data": topfour
					},
				]
				this.seriesData6 = [{
						"name": this.yearOptions[0],
						"data": first_x_value
					},
					{
						"name": this.yearOptions[1],
						"data": second_x_value
					},
					{
						"name": this.yearOptions[2],
						"data": third_x_value
					},
					{
						"name": this.yearOptions[3],
						"data": four_x_value
					},
				]
			},

			// 报录比数据处理
			async averhandleClick3(tab, canvas, width, height) {
				getblb({
					majors: [{
						majorCode: this.nowClickRow.majorCode,
						schoolCode: this.nowClickRow.schoolCode,
						collegeCode: this.nowClickRow.collegeCode,
					}]

				}).then(res => {

					console.warn('报录比数据处理: ', res.data);
					this.headers = [{
						label: '年份',
						key: 'title',
						width: 160
					}, ];

					// 计划招生是否推免字符串
					let obj = res.data[0];
					let str = `(${obj.includeRecommend === 1 ? '含推免' : '不含推免'}${obj.includeSpecialPlan === 1 ? '和专项计划' :''})`
					// 表格数据处理
					let arrData = [{
							title: '计划招生'+str
						},
						{
							title: '录取数（含专项计划和定向）'
						},
						{
							title: '保研数'
						},
						{
							title: '调剂数'
						},
						{
							title: '第一志愿'
						},
						{
							title: '外校调剂来源'
						},
					];
					this.seriesData1 = [];
					res.data.forEach((item) => {
						this.headers.push({
							label: item.year,
							key: item.year,
							width: 130
						});
						arrData[0][item.year] = item.enrollStudentNumber;
						arrData[1][item.year] = item.enrollNumber;
						arrData[2][item.year] = item.recommendNumber;
						arrData[3][item.year] = item.adjustNumber;
						arrData[4][item.year] = item.applyNumber;
						arrData[5][item.year] = item.adjustSource;
						this.seriesData1.push({
							"name": item.year,
							"data": [item.enrollStudentNumber === '-' ? 0 : Number(item.enrollStudentNumber), item
								.enrollNumber === '-' ? 0 : Number(item.enrollNumber), item.recommendNumber === '-' ? 0 :
								Number(item
									.recommendNumber), item.adjustNumber === '-' ? 0 : Number(item.adjustNumber), item
								.applyNumber === '-' ? 0 : Number(item.applyNumber)
							]
						})
					});
					this.firstTableData = arrData;
					if (this.firstTableData.length > 0) {
						this.firstTableDataShow = true;
					}
				})
			},
			async averhandleClick4(tabs4, canvas, width, height) {
				if (tabs4 == 0) {
					this.averCountdetaiLefttableData = this.pjfTotalInfoList['初试总分'];
				} else if (tabs4 == 1) {
					this.averCountdetaiLefttableData = this.pjfTotalInfoList['英语'];
				} else if (tabs4 == 2) {
					this.averCountdetaiLefttableData = this.pjfTotalInfoList['政治'];
				} else if (tabs4 == 3) {
					this.averCountdetaiLefttableData = this.pjfTotalInfoList['专一'];
				} else if (tabs4 == 4) {
					this.averCountdetaiLefttableData = this.pjfTotalInfoList['专二'];
				}

				if (this.averCountdetaiLefttableData.length > 0) {
					this.averCountdetaiLefttableDataShow = true
				}

			},
		},

	};
</script>
<style lang="scss">
	page {
		background-color: $pageBgColor;
	}
</style>
<style lang="scss" scoped>
	.tabBox {
		height: 5px;
		width: 100%;
	}

	.subtext {
		width: 300rpx;
		height: 47rpx;
		line-height: 47rpx;
		font-weight: 500;
		background-color: #fff;
		color: #333;
		position: absolute;
		left: 106px;
		top: 37px;
		text-align: center;
		z-index: 999;
		border-radius: 8rpx;
		font-size: 26rpx;
		letter-spacing: normal;
		color: #333333;
		font-weight: 700;
	}

	.content {
		width: 100%;
		height: 100%;
		// min-height: 100vh;
		padding-bottom: 20rpx;
	}

	.firstEchartBox {
		height: 300px;
		margin: 0 30rpx;
		// width: 96.7%;
		position: relative;
		// 只改了这一个地方
		background-color: #fff;
		// background-color: #081736;
		margin-bottom: 32rpx;
	}

	.rightInfoBox {
		// width: 85%;
		border: 1px solid #E0E0E0;
		padding-left: 40rpx;
		padding-right: 40rpx;
		margin: 0 30rpx;
		margin-bottom: 40rpx;
		// margin-top: 30rpx;
		background: #ffffff;
	}

	.firstTop {
		display: flex;
		align-items: flex-end;
		margin-top: 16rpx;
	}

	.firstTopWords {
		font-style: italic;
		color: #aaaaaa;
		font-size: 28rpx;
		font-weight: 700;
	}

	.lineBox {
		height: 6px;
		width: 98%;
		border-radius: 10px;
		background-color: #d7d7d7;
	}

	.smallSize {
		font-size: 24rpx;
		line-height: 36rpx;
		color: #333333;
	}

	.middleBox {
		margin: 26rpx 0;
	}

	.weightFont {
		// color: black;
		color: #333333;
		font-size: 24rpx;
		line-height: 36rpx;
		font-weight: 400;
		font-style: italic;
		letter-spacing: normal;
	}

	.echarts-wrap {
		width: 100%;
		height: 300px;
	}

	.content {
		background-color: #f2f2f2;
		width: 100%;
		height: 100%;
		min-height: 100vh;
		// padding-top: 20rpx;
		padding-bottom: 20rpx;
	}

	.bltitle {
		text-align: center;
		font-size: 36rpx;
		font-weight: 550;
		margin-top: 48rpx;
		line-height: 1rem;
	}

	.little_words {
		text-align: center;
		font-size: 32rpx;
		font-weight: 550;
		margin-bottom: 48rpx;
		line-height: 1rem;
		margin: 44rpx 0 20rpx;
		display: flex;
		align-items: center;
		justify-content: center;

		image {
			width: 32rpx;
			height: 32rpx;
			margin-right: 12rpx;
		}

	}

	.ledai {
		width: 100%;
		margin: 0 30rpx;
		margin: 0px auto;
		// width: 94%;
		height: auto;
		border-radius: 8rpx;
	}

	.cscjTableBox,
	.fscjTableBox,
	.cxsfxTableBox,
	.cjzkTableBox,
	.firstTableBox {
		margin: 0 30rpx;
	}

	::v-deep .v-tabs__container {
		background: none !important;
	}
</style>